<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <!-- Bootstrap -->
    <div th:include="pages/include :: public_css"></div>
</head>
<body>
<div class="container-fluid">
    <div th:include="pages/include :: header"></div>
    <div class="row">
        <div class="col-md-2">
            <div th:include="pages/include :: menus"></div>
        </div>
        <div class="col-md-10">
            <div id="content">
                <span id="span_welcome" style="font-size: 30px;"></span>
            </div>
        </div>
    </div>
</div>
<div th:include="pages/include :: public_js"></div>
<script type="text/javascript">
    $(document).ready(function () {
      let type = "[[${session.loginAdmin.type}]]";
      console.log(type);
      if (type === "0") {
        $("#span_welcome").text("欢迎您系统管理员");
      } else if (type === "1") {
        $("#span_welcome").text("欢迎您宿舍管理员");
      } else {
        $("#span_welcome").text("欢迎您学生");
      }

      menuActive();
    });
</script>
</body>
</html>
